#define _CRT_SECURE_NO_WARNINGS 1

//#include<stdio.h>
//#include<string.h>
//
////int determine(char* arr1, char* arr2)
////{
////	int k = strlen(arr1);
////	int a = k - 1;
////	while(k)//5 3  1
////		{
////			int i = 0;
////			char temp = *arr1;
////			for (i = 0; i < a; i++)
////			{
////				arr1[i] = arr1[i + 1];
////			}
////			arr1[i] = temp;
////			if (strcmp(arr1, arr2) == 0)
////			{
////				//printf("%s\n",arr1);
////				return 1;
////			}
////			k--;
////		}
////		return 0;
////}
//
//int determine(char* arr1, char* arr2)
//{
//	int len1 = strlen(arr1);
//	int len2 = strlen(arr2);
//	if (len1 != len2)
//	{
//		return 0;
//	}
//	strncat(arr1, arr1, 6);
//	if (strstr(arr1, arr2) == NULL)
//		return 0;
//	else
//		return 1;
//}
//
//int main()
//{
//	char arr1[30] = "abcdef";
//	char arr2[] = "defabc";
//	int ret = determine(arr1, arr2);
//	if (ret == 1)
//		printf("YES\n");
//	else
//		printf("NO\n");
//
//	return 0;
//}